package com.central.modules.sys.model;

import com.central.common.validator.group.AddGroup;
import com.central.common.validator.group.DefaultGroup;
import com.central.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.io.Serializable;

@Data
public class AddSysDictTypeRequest implements Serializable {
    @Null(message = "{id.null}", groups = AddGroup.class)
    @NotNull(message = "{id.require}", groups = UpdateGroup.class)
    private String id;

    @NotBlank(message = "{dictName.require}", groups = DefaultGroup.class)
    private String dictName;//字典名称 系统开关
    @NotBlank(message = "{dictType.require}", groups = DefaultGroup.class)
    private String dictType;//字典类型 sys_user_sex

    private String remark;//备注
}
